#include "stack.h"

void Test();

int main()
{
	Test();
	return 0;
}

void Test()
{
	Stack st;
	Init(&st);
	Push(&st, 1);
	Push(&st, 2);
	Push(&st, 3);
	Push(&st, 4);
	Push(&st, 5);
	Push(&st, 6);

	printf("size = %d\n", Size(&st));
	while (!Empty(&st))
	{
		printf("%d ", GetTop(&st));
		Pop(&st);
	}
	putchar('\n');

	Destroy(&st);
}